import request from "./request";
//商家管理


//获取所有商家
export function getAllBusinessApi(params: any) {
    return request({
        url: '/business/getAll',
        method: 'get',
        params
    })
}


//根据id获取店家信息

export function getBusinessByIdApi(businessId: any) {
    return request({
        url: '/business/getInfo/' + businessId,
        method: 'get'
    })
}


//商家注册


//修改店家信息
export function updateApi(data:any) {
    return request({
        url: '/business/update',
        method: 'POST',
        data
    })
}
